package com.ruoyi.cems.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cems.mapper.BmsWorkChecklistsDetailMapper;
import com.ruoyi.cems.domain.BmsWorkChecklistsDetail;
import com.ruoyi.cems.service.IBmsWorkChecklistsDetailService;

/**
 * 工作检查单明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-23
 */
@Service
public class BmsWorkChecklistsDetailServiceImpl implements IBmsWorkChecklistsDetailService 
{
    @Autowired
    private BmsWorkChecklistsDetailMapper bmsWorkChecklistsDetailMapper;

    /**
     * 查询工作检查单明细
     * 
     * @param ID 工作检查单明细主键
     * @return 工作检查单明细
     */
    @Override
    public BmsWorkChecklistsDetail selectBmsWorkChecklistsDetailByID(String ID)
    {
        return bmsWorkChecklistsDetailMapper.selectBmsWorkChecklistsDetailByID(ID);
    }

    /**
     * 查询工作检查单明细列表
     * 
     * @param bmsWorkChecklistsDetail 工作检查单明细
     * @return 工作检查单明细
     */
    @Override
    public List<BmsWorkChecklistsDetail> selectBmsWorkChecklistsDetailList(BmsWorkChecklistsDetail bmsWorkChecklistsDetail)
    {
        return bmsWorkChecklistsDetailMapper.selectBmsWorkChecklistsDetailList(bmsWorkChecklistsDetail);
    }

    /**
     * 新增工作检查单明细
     * 
     * @param bmsWorkChecklistsDetail 工作检查单明细
     * @return 结果
     */
    @Override
    public int insertBmsWorkChecklistsDetail(BmsWorkChecklistsDetail bmsWorkChecklistsDetail)
    {
        return bmsWorkChecklistsDetailMapper.insertBmsWorkChecklistsDetail(bmsWorkChecklistsDetail);
    }

    /**
     * 修改工作检查单明细
     * 
     * @param bmsWorkChecklistsDetail 工作检查单明细
     * @return 结果
     */
    @Override
    public int updateBmsWorkChecklistsDetail(BmsWorkChecklistsDetail bmsWorkChecklistsDetail)
    {
        return bmsWorkChecklistsDetailMapper.updateBmsWorkChecklistsDetail(bmsWorkChecklistsDetail);
    }

    /**
     * 批量删除工作检查单明细
     * 
     * @param IDs 需要删除的工作检查单明细主键
     * @return 结果
     */
    @Override
    public int deleteBmsWorkChecklistsDetailByIDs(String[] IDs)
    {
        return bmsWorkChecklistsDetailMapper.deleteBmsWorkChecklistsDetailByIDs(IDs);
    }

    /**
     * 删除工作检查单明细信息
     * 
     * @param ID 工作检查单明细主键
     * @return 结果
     */
    @Override
    public int deleteBmsWorkChecklistsDetailByID(String ID)
    {
        return bmsWorkChecklistsDetailMapper.deleteBmsWorkChecklistsDetailByID(ID);
    }
}
